package com.axjy.myspringdata.service;

import com.axjy.myspringdata.dao.EmpDao;
import com.axjy.myspringdata.pojo.Emp;
import com.axjy.myspringdata.util.PageModel;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface EmpService {

        public void add(Emp emp);

        public void del(Integer id);

        public void update(Emp emp);

        public List<Emp> searchAll(String ename);

        public Emp get(Integer id);

        public PageModel searchPager(Integer offset,Integer pageSize);

        public PageModel searchPager(Integer offset,Integer pageSize,String ename);





}
